package com.iplant.mes.service.mesenum.exc;

import com.iplant.base.po.enums.BaseEnum;

/**
 * 停序单状态枚举
 *
 * @author femi
 * 2023-12-19 17:04:48
 */
public enum EXCLineStopStatus implements BaseEnum {
    /**
     * 默认
     */
    Default(0, "默认"),
    /**
     * 保存
     */
    Saved(1, "保存"),
    /**
     * 停线中
     */
    Stoping(2, "停线中"),
    /**
     * 已撤销
     */
    Canceled(3, "已撤销"),
    /**
     * 已结束
     */
    Finished(4, "已结束"),
    /**
     *待确认
     */
    ToCofirm(5,"待确认");

    private int value;
    private String label;


    EXCLineStopStatus(int value, String label) {
        this.value = value;
        this.label = label;
    }

    /**
     * 通过 value 的数值获取枚举实例
     *
     * @param val
     * @return
     */
    public static EXCLineStopStatus getEnumType(int val) {
        for (EXCLineStopStatus type : EXCLineStopStatus.values()) {
            if (type.getValue() == val) {
                return type;
            }
        }
        return Default;
    }

    public int getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }

    @Override
    public void setValue(int wValue) {
        this.value = wValue;
    }

    @Override
    public void setLabel(String wLabel) {
        this.label = wLabel;
    }

    @Override
    public String getRemark() {
        return null;
    }

    @Override
    public void setRemark(String remark) {

    }

}
